import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from 'axios'

import '@assets/css/base.css'

Vue.prototype.$axios = axios
import Vant from 'vant';
import 'vant/lib/index.css';
import envCfg2 from '@assets/js/env2.js'

Vue.use(Vant);

import VueCookie from 'vue-cookie'
Vue.prototype.$cookie = VueCookie
Vue.use(VueCookie)  

axios.get('/api/form_v?_form='+envCfg2+'&_url=color').then(res=>{
	if(res.status === 200){
		store.commit('getColor', res.data.data[0])
	}
})
Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
